def sortList(list1):
    for i in range(0,len(list1)-1):
        for j in range(0,len(list1)-i-1):
            if list1[j] >list1[j+1]:
                list1[j],list1[j+1] = list1[j+1],list1[j]

if __name__ == '__main__':
    list1 = [22,56,1,5,9,46,1314]
    sortList(list1)
    print(list1)